﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace CNFM_CROCODILE_LOGO.Data.Migrations
{
    public partial class Model5 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "Identification",
                columns: table => new
                {
                    Id = table.Column<string>(unicode: false, maxLength: 36, nullable: false),
                    Remarks = table.Column<string>(unicode: false, maxLength: 200, nullable: true),
                    Status = table.Column<int>(type: "int", unicode: false, nullable: false, defaultValue: 0),
                    CreateTime = table.Column<DateTime>(type: "datetime", nullable: false, defaultValueSql: "(getdate())"),
                    CreateId = table.Column<string>(unicode: false, maxLength: 50, nullable: false),
                    SignageApplicationReceiptId = table.Column<string>(unicode: false, maxLength: 50, nullable: false),
                    SpeciesManageId = table.Column<string>(unicode: false, maxLength: 50, nullable: false),
                    EnterpriseId = table.Column<string>(unicode: false, maxLength: 50, nullable: false),
                    IdentificationNo = table.Column<string>(unicode: false, maxLength: 50, nullable: false),
                    RegisteredTime = table.Column<DateTime>(type: "datetime", nullable: false, defaultValueSql: "(getdate())"),
                    QRCode = table.Column<string>(unicode: false, maxLength: 50, nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_Identification", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "Identification");
        }
    }
}
